package com.tledu.ssm01.mapper;

import com.tledu.ssm01.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Antg
 * @date 2021/8/12  18:39
 */
public interface UserMapper {
    //查询所有
    List<User>  findAll();
    //根据用户名查询
    User findByUserName(String username);
    //编辑
    int editUser(User user);
    //编辑头像
    int editHeadPic(@Param("id") Integer id,@Param("headPic") String headPic);

}

